Re: [PATCH-v3 6/6] btrfs: add an is_readonly() so btrfs can use common code for update_time()

2014-11-25 Thread David Sterba
On Tue, Nov 25, 2014 at 12:34:34AM -0500, Theodore Ts'o wrote: > The only reason btrfs cloned code from the VFS layer was so it could > add a check to see if a subvolume is read-ony. Instead of doing that, > let's add a new inode operation which allows a file system to return > an error if the ino

[PATCH-v3 6/6] btrfs: add an is_readonly() so btrfs can use common code for update_time()

2014-11-24 Thread Theodore Ts'o
The only reason btrfs cloned code from the VFS layer was so it could add a check to see if a subvolume is read-ony. Instead of doing that, let's add a new inode operation which allows a file system to return an error if the inode is read-only, and use that in update_time(). There may be other plac