]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: set dir complete frag after adding capability
authorSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:30:02 +0000 (11:30 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:30:02 +0000 (11:30 -0700)
commit71b171c3cd7b81f15097a36962b84666bd550a98
tree34186b6bba311438cccbd572f4f93d8165dce89b
parent986e4ca1485d3dbdd288916ebf651bca4c975102
ceph: set dir complete frag after adding capability

Curretly ceph_add_cap clears the complete bit if we are newly issued the
FILE_SHARED cap, which is normally the case for a newly issue cap on a new
directory.  That means we clear the just-set bit.  Move the check that sets
the flag to after the cap is added/updated.

Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/inode.c