]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: infer 'follows' in journal_dirty_inode on non-head inodes
authorSage Weil <sage@newdream.net>
Mon, 15 Feb 2010 21:47:41 +0000 (13:47 -0800)
committerSage Weil <sage@newdream.net>
Mon, 15 Feb 2010 21:47:50 +0000 (13:47 -0800)
commit3b1a90e648fc26b286b6c08a4063dc74071bcde1
tree009b8098fe561916dc7f4fc725867be353980099
parent01ed8d0aaa4e5213d88969e8aecc93451675fdea
mds: infer 'follows' in journal_dirty_inode on non-head inodes

There are lots of callers to journal_dirty_inode that may
unwittingly be dealing with a non-head inode (e.g.
check_file_max).  If the provided inode is snapped, infer an
appropriate follows values so as not to cow_inode() again.
src/mds/MDCache.cc