linux/fs
Miklos Szeredi f03b8ad8d3 fs: support RENAME_NOREPLACE for local filesystems
This is trivial to do:

 - add flags argument to foo_rename()
 - check if flags doesn't have any other than RENAME_NOREPLACE
 - assign foo_rename() to .rename2 instead of .rename

Filesystems converted:

affs, bfs, exofs, ext2, hfs, hfsplus, jffs2, jfs, logfs, minix, msdos,
nilfs2, omfs, reiserfs, sysvfs, ubifs, udf, ufs, vfat.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Acked-by: Boaz Harrosh <ooo@electrozaur.com>
Acked-by: Richard Weinberger <richard@nod.at>
Acked-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Jan Kara <jack@suse.cz>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Dave Kleikamp <shaggy@kernel.org>
Cc: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: Christoph Hellwig <hch@infradead.org>
2016-09-27 11:03:57 +02:00
..
9p
adfs
affs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
afs
autofs4 autofs: use dentry flags to block walks during expire 2016-09-19 15:36:17 -07:00
befs
bfs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
btrfs Merge branch 'for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs 2016-09-23 13:39:37 -07:00
cachefiles
ceph ceph: do not modify fi->frag in need_reset_readdir() 2016-09-05 14:30:35 +02:00
cifs Move check for prefix path to within cifs_get_root() 2016-09-09 23:58:07 -05:00
coda
configfs configfs: Return -EFBIG from configfs_write_bin_file. 2016-09-16 12:58:28 +02:00
cramfs
crypto fscrypto: require write access to mount to set encryption policy 2016-09-10 01:18:57 -04:00
debugfs
devpts devpts: return NULL pts 'priv' entry for non-devpts nodes 2016-09-03 11:02:50 -07:00
dlm dlm: fix malfunction of dlm_tool caused by debugfs changes 2016-08-26 13:22:14 -05:00
ecryptfs
efivarfs
efs
exofs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
exportfs
ext2 fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
ext4 fscrypto: require write access to mount to set encryption policy 2016-09-10 01:18:57 -04:00
f2fs fscrypto: require write access to mount to set encryption policy 2016-09-10 01:18:57 -04:00
fat fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
freevxfs
fscache
fuse
gfs2
hfs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
hfsplus fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
hostfs
hpfs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
hugetlbfs
isofs
jbd2
jffs2 fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
jfs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
kernfs kernfs: don't depend on d_find_any_alias() when generating notifications 2016-08-31 14:48:52 +02:00
lockd
logfs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
minix fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
ncpfs ncpfs: fix unused variable warning 2016-09-27 11:03:57 +02:00
nfs NFSv4.1: Fix the CREATE_SESSION slot number accounting 2016-09-11 14:56:44 -04:00
nfs_common
nfsd
nilfs2 fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
nls
notify fanotify: fix list corruption in fanotify_get_response() 2016-09-19 15:36:17 -07:00
ntfs
ocfs2 Revert "ocfs2: bump up o2cb network protocol version" 2016-09-19 15:36:17 -07:00
omfs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
openpromfs
orangefs
overlayfs ovl: fix workdir creation 2016-09-05 13:55:20 +02:00
proc fs/proc/kcore.c: Add bounce buffer for ktext data 2016-09-20 13:32:49 -07:00
pstore
qnx4
qnx6
quota
ramfs ipc/shm: fix crash if CONFIG_SHMEM is not set 2016-09-19 15:36:17 -07:00
reiserfs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
romfs
squashfs
sysfs sysfs: correctly handle read offset on PREALLOC attrs 2016-08-31 15:14:44 +02:00
sysv fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
tracefs
ubifs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
udf fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
ufs fs: support RENAME_NOREPLACE for local filesystems 2016-09-27 11:03:57 +02:00
xfs xfs: track log done items directly in the deferred pending work item 2016-08-30 13:51:39 +10:00
aio.c aio: mark AIO pseudo-fs noexec 2016-09-15 15:49:28 -07:00
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c binfmt_elf: switch to new creds when switching to new mm 2016-08-31 09:13:56 -07:00
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
block_dev.c
buffer.c
char_dev.c
compat.c
compat_binfmt_elf.c
compat_ioctl.c
coredump.c
dax.c
dcache.c
dcookies.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c
fcntl.c
fhandle.c
file.c
file_table.c
filesystems.c
fs-writeback.c
fs_pin.c
fs_struct.c
inode.c
internal.h
ioctl.c vfs: cap dedupe request structure size at PAGE_SIZE 2016-09-15 13:29:52 -07:00
iomap.c iomap: don't set FIEMAP_EXTENT_MERGED for extent based filesystems 2016-08-29 11:33:58 +10:00
Kconfig
Kconfig.binfmt
libfs.c
locks.c
Makefile
mbcache.c
mount.h
mpage.c
namei.c
namespace.c
no-block.c
nsfs.c
open.c
pipe.c
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c
readdir.c
select.c
seq_file.c fs/seq_file: fix out-of-bounds read 2016-08-26 17:39:35 -07:00
signalfd.c
splice.c
stack.c
stat.c
statfs.c
super.c
sync.c
timerfd.c
userfaultfd.c
utimes.c
xattr.c