commit | 0ba92e1c5f7ce7e9c1c828a84e873d7be51c1b9f | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@kernel.org> | Mon Aug 02 11:01:26 2021 -0400 |
committer | Ilya Dryomov <idryomov@gmail.com> | Thu Sep 02 22:49:17 2021 +0200 |
tree | 6820ef381dbcca7a789c4dcf8fb14968fb9b2485 | |
parent | c80dc3aee984c647d747bb07c108862effc917d8 [diff] |
ceph: add ceph_change_snap_realm() helper Consolidate some fiddly code for changing an inode's snap_realm into a new helper function, and change the callers to use it. While we're in here, nothing uses the i_snap_realm_counter field, so remove that from the inode. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Luis Henriques <lhenriques@suse.de> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>