pull mnt_want_write()/mnt_drop_write() into kern_path_create()/done_path_create(...
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 19 Jul 2012 22:25:00 +0000 (02:25 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jul 2012 17:24:15 +0000 (21:24 +0400)
commita8104a9fcdeb82e22d7acd55fca20746581067d3
tree3036dae685f9b12a878dd02e439f0050114d7745
parent8e4bfca1d1f0de62301dd223675717e7a5f63a27
pull mnt_want_write()/mnt_drop_write() into kern_path_create()/done_path_create() resp.

One side effect - attempt to create a cross-device link on a read-only fs fails
with EROFS instead of EXDEV now.  Makes more sense, POSIX allows, etc.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
fs/ocfs2/refcounttree.c
net/unix/af_unix.c