kernel_optimize_test/fs/f2fs
Yang Shi 59692b7c71 f2fs: mutex can't be used by down_write_nest_lock()
f2fs_lock_all() calls down_write_nest_lock() to acquire a rw_sem and check
a mutex, but down_write_nest_lock() is designed for two rw_sem accoring to the
comment in include/linux/rwsem.h. And, other than f2fs, it is just called in
mm/mmap.c with two rwsem.

So, it looks it is used wrongly by f2fs. And, it causes the below compile
warning on -rt kernel too.

In file included from fs/f2fs/xattr.c:25:0:
fs/f2fs/f2fs.h: In function 'f2fs_lock_all':
fs/f2fs/f2fs.h:962:34: warning: passing argument 2 of 'down_write_nest_lock' from incompatible pointer type [-Wincompatible-pointer-types]
  f2fs_down_write(&sbi->cp_rwsem, &sbi->cp_mutex);
                                  ^
fs/f2fs/f2fs.h:27:55: note: in definition of macro 'f2fs_down_write'
 #define f2fs_down_write(x, y) down_write_nest_lock(x, y)
                                                       ^
In file included from include/linux/rwsem.h:22:0,
                 from fs/f2fs/xattr.c:21:
include/linux/rwsem_rt.h:138:20: note: expected 'struct rw_semaphore *' but argument is of type 'struct mutex *'
 static inline void down_write_nest_lock(struct rw_semaphore *sem,

Signed-off-by: Yang Shi <yang.shi@linaro.org>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2016-03-02 10:22:14 -08:00
..
acl.c f2fs: make posix_acl_create() safer and cleaner 2015-05-07 11:38:31 -07:00
acl.h f2fs: avoid deadlock on init_inode_metadata 2014-11-03 16:07:33 -08:00
checkpoint.c f2fs: introduce f2fs_flush_merged_bios for cleanup 2016-02-26 11:52:02 -08:00
crypto_fname.c f2fs crypto: avoid unneeded memory allocation when {en/de}crypting symlink 2016-02-22 16:07:23 -08:00
crypto_key.c f2fs crypto: add missing locking for keyring_key access 2016-02-22 16:07:23 -08:00
crypto_policy.c f2fs crypto: handle unexpected lack of encryption keys 2016-02-22 16:07:23 -08:00
crypto.c f2fs crypto: f2fs_page_crypto() doesn't need a encryption context 2016-02-22 16:07:23 -08:00
data.c f2fs: introduce f2fs_flush_merged_bios for cleanup 2016-02-26 11:52:02 -08:00
debug.c Merge tag 'for-f2fs-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs 2016-01-13 21:01:44 -08:00
dir.c f2fs crypto: make sure the encryption info is initialized on opendir(2) 2016-02-22 16:07:23 -08:00
extent_cache.c f2fs: introduce f2fs_update_data_blkaddr for cleanup 2016-02-26 11:52:01 -08:00
f2fs_crypto.h f2fs crypto: remove alloc_page for bounce_page 2015-06-01 16:21:10 -07:00
f2fs.h f2fs: mutex can't be used by down_write_nest_lock() 2016-03-02 10:22:14 -08:00
file.c f2fs: introduce f2fs_update_data_blkaddr for cleanup 2016-02-26 11:52:01 -08:00
gc.c f2fs: introduce f2fs_update_data_blkaddr for cleanup 2016-02-26 11:52:01 -08:00
gc.h f2fs: detect idle time depending on user behavior 2016-01-11 15:56:37 -08:00
hash.c f2fs: introduce dot and dotdot name check 2015-05-28 15:41:34 -07:00
inline.c f2fs: introduce f2fs_update_data_blkaddr for cleanup 2016-02-26 11:52:01 -08:00
inode.c f2fs: split drop_inmem_pages from commit_inmem_pages 2016-02-22 16:07:23 -08:00
Kconfig f2fs: fix typo 2015-08-21 22:43:32 -07:00
Makefile f2fs: maintain extent cache in separated file 2015-08-04 14:09:58 -07:00
namei.c f2fs: recovery missing dot dentries in root directory 2016-03-02 09:25:33 -08:00
node.c f2fs: fix to avoid deadlock when merging inline data 2016-02-26 11:52:03 -08:00
node.h f2fs: use wait_for_stable_page to avoid contention 2016-02-22 16:07:23 -08:00
recovery.c f2fs: support revoking atomic written pages 2016-02-22 16:07:23 -08:00
segment.c f2fs: introduce f2fs_update_data_blkaddr for cleanup 2016-02-26 11:52:01 -08:00
segment.h f2fs: split journal cache from curseg cache 2016-02-22 21:39:54 -08:00
shrinker.c f2fs: speed up shrinking extent tree entries 2015-12-30 10:13:00 -08:00
super.c f2fs: introduce f2fs_flush_merged_bios for cleanup 2016-02-26 11:52:02 -08:00
trace.c f2fs: trace old block address for CoWed page 2016-02-22 21:40:02 -08:00
trace.h f2fs: add sbi and page pointer in f2fs_io_info 2015-05-28 15:41:32 -07:00
xattr.c f2fs: use wait_for_stable_page to avoid contention 2016-02-22 16:07:23 -08:00
xattr.h vfs: Distinguish between full xattr names and proper prefixes 2015-12-06 21:33:52 -05:00