diff options
author | Vivek Goyal <vgoyal@redhat.com> | 2018-05-11 11:49:31 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-07-20 09:56:12 +0200 |
commit | 8c444d2a971fdccda670e874f12443627f028fbc (patch) | |
tree | 80b0c16602ca4a6e2ac27336047ce0085bbdc08e /lib/radix-tree.c | |
parent | 4823d49c26eaf269cd2c2723bed8249aaed80795 (diff) | |
download | linux-8c444d2a971fdccda670e874f12443627f028fbc.tar.gz linux-8c444d2a971fdccda670e874f12443627f028fbc.tar.bz2 linux-8c444d2a971fdccda670e874f12443627f028fbc.zip |
ovl: Open file with data except for the case of fsync
ovl_open() should open file which contains data and not open metacopy
inode. With the introduction of metacopy inodes, with current
implementaion we will end up opening metacopy inode as well.
But there can be certain circumstances like ovl_fsync() where we want to
allow opening a metacopy inode instead.
Hence, change ovl_open_realfile() and and add extra parameter which
specifies whether to allow opening metacopy inode or not. If this
parameter is false, we look for data inode and open that.
This should allow covering both the cases.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'lib/radix-tree.c')
0 files changed, 0 insertions, 0 deletions