OSDN Git Service

[PATCH] Claim i_alloc_sem while changing file size in nfsd
authorNeilBrown <neilb@cse.unsw.edu.au>
Wed, 1 Jun 2005 01:20:26 +0000 (11:20 +1000)
committerMarcelo Tosatti <marcelo.tosatti@cyclades.com>
Tue, 7 Jun 2005 16:26:54 +0000 (13:26 -0300)
commit63789b37d0e2344ca4da9d1c7dc49bae7368c466
tree6f43f201f6ce5438ac5127a6a98f1bc16bc2a54f
parentc3616f6fc4d1b45866e9ff3f782345b1dbc4ca3f
[PATCH] Claim i_alloc_sem while changing file size in nfsd

nfsd should hold i_alloc_sem while calling notify_change
with ATTR_SIZE set, just like do_truncate does.

From: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
### Diffstat output
 ./fs/nfsd/vfs.c |    2 ++
 1 files changed, 2 insertions(+)

diff ./fs/nfsd/vfs.c~current~ ./fs/nfsd/vfs.c
fs/nfsd/vfs.c