• Amir Goldstein's avatar
    vfs: swap names of {do,vfs}_clone_file_range() · a725356b
    Amir Goldstein authored
    Commit 031a072a ("vfs: call vfs_clone_file_range() under freeze
    protection") created a wrapper do_clone_file_range() around
    vfs_clone_file_range() moving the freeze protection to former, so
    overlayfs could call the latter.
    
    The more common vfs practice is to call do_xxx helpers from vfs_xxx
    helpers, where freeze protecction is taken in the vfs_xxx helper, so
    this anomality could be a source of confusion.
    
    It seems that commit 8ede2055 ("ovl: add reflink/copyfile/dedup
    support") may have fallen a victim to this confusion -
    ovl_clone_file_range() calls the vfs_clone_file_range() helper in the
    hope of getting freeze protection on upper fs, but in fact results in
    overlayfs allowing to bypass upper fs freeze protection.
    
    Swap the names of the two helpers to conform to common vfs practice
    and call the correct helpers from overlayfs and nfsd.
    Signed-off-by: Amir Goldstein's avatarAmir Goldstein <amir73il@gmail.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    a725356b
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
acl.h Loading commit data...
auth.c Loading commit data...
auth.h Loading commit data...
blocklayout.c Loading commit data...
blocklayoutxdr.c Loading commit data...
blocklayoutxdr.h Loading commit data...
cache.h Loading commit data...
current_stateid.h Loading commit data...
export.c Loading commit data...
export.h Loading commit data...
fault_inject.c Loading commit data...
flexfilelayout.c Loading commit data...
flexfilelayoutxdr.c Loading commit data...
flexfilelayoutxdr.h Loading commit data...
idmap.h Loading commit data...
lockd.c Loading commit data...
netns.h Loading commit data...
nfs2acl.c Loading commit data...
nfs3acl.c Loading commit data...
nfs3proc.c Loading commit data...
nfs3xdr.c Loading commit data...
nfs4acl.c Loading commit data...
nfs4callback.c Loading commit data...
nfs4idmap.c Loading commit data...
nfs4layouts.c Loading commit data...
nfs4proc.c Loading commit data...
nfs4recover.c Loading commit data...
nfs4state.c Loading commit data...
nfs4xdr.c Loading commit data...
nfscache.c Loading commit data...
nfsctl.c Loading commit data...
nfsd.h Loading commit data...
nfsfh.c Loading commit data...
nfsfh.h Loading commit data...
nfsproc.c Loading commit data...
nfssvc.c Loading commit data...
nfsxdr.c Loading commit data...
pnfs.h Loading commit data...
state.h Loading commit data...
stats.c Loading commit data...
stats.h Loading commit data...
trace.c Loading commit data...
trace.h Loading commit data...
vfs.c Loading commit data...
vfs.h Loading commit data...
xdr.h Loading commit data...
xdr3.h Loading commit data...
xdr4.h Loading commit data...
xdr4cb.h Loading commit data...