There is at most one path associated with an opened file - d_path on
file->f_dentry. If a fd has no path, don't permit flink().
Alternatively, flink() could have 3 arguments, 2 like link and an opened
fd, which would atomically do if fd describes the same object as buf,
link buf to newname.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/