diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 20:25:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 20:25:34 -0400 |
commit | 27c1ee3f929555b71fa39ec0d81a7e7185de1b16 (patch) | |
tree | 42e40bdfe4efac660d650658019391536ce67a42 /fs/nilfs2/super.c | |
parent | 37cd9600a9e20359b0283983c9e3a55d84347168 (diff) | |
parent | 086ff4b3a7fb9cdf41e6a5d0ccd99b86d84633a1 (diff) |
Merge branch 'akpm' (Andrew's patch-bomb)
Merge Andrew's first set of patches:
"Non-MM patches:
- lots of misc bits
- tree-wide have_clk() cleanups
- quite a lot of printk tweaks. I draw your attention to "printk:
convert the format for KERN_<LEVEL> to a 2 byte pattern" which
looks a bit scary. But afaict it's solid.
- backlight updates
- lib/ feature work (notably the addition and use of memweight())
- checkpatch updates
- rtc updates
- nilfs updates
- fatfs updates (partial, still waiting for acks)
- kdump, proc, fork, IPC, sysctl, taskstats, pps, etc
- new fault-injection feature work"
* Merge emailed patches from Andrew Morton <akpm@linux-foundation.org>: (128 commits)
drivers/misc/lkdtm.c: fix missing allocation failure check
lib/scatterlist: do not re-write gfp_flags in __sg_alloc_table()
fault-injection: add tool to run command with failslab or fail_page_alloc
fault-injection: add selftests for cpu and memory hotplug
powerpc: pSeries reconfig notifier error injection module
memory: memory notifier error injection module
PM: PM notifier error injection module
cpu: rewrite cpu-notifier-error-inject module
fault-injection: notifier error injection
c/r: fcntl: add F_GETOWNER_UIDS option
resource: make sure requested range is included in the root range
include/linux/aio.h: cpp->C conversions
fs: cachefiles: add support for large files in filesystem caching
pps: return PTR_ERR on error in device_create
taskstats: check nla_reserve() return
sysctl: suppress kmemleak messages
ipc: use Kconfig options for __ARCH_WANT_[COMPAT_]IPC_PARSE_VERSION
ipc: compat: use signed size_t types for msgsnd and msgrcv
ipc: allow compat IPC version field parsing if !ARCH_WANT_OLD_COMPAT_IPC
ipc: add COMPAT_SHMLBA support
...
Diffstat (limited to 'fs/nilfs2/super.c')
-rw-r--r-- | fs/nilfs2/super.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index d57c42f974ea..6522cac6057c 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c | |||
@@ -677,7 +677,6 @@ static const struct super_operations nilfs_sops = { | |||
677 | .destroy_inode = nilfs_destroy_inode, | 677 | .destroy_inode = nilfs_destroy_inode, |
678 | .dirty_inode = nilfs_dirty_inode, | 678 | .dirty_inode = nilfs_dirty_inode, |
679 | /* .write_inode = nilfs_write_inode, */ | 679 | /* .write_inode = nilfs_write_inode, */ |
680 | /* .put_inode = nilfs_put_inode, */ | ||
681 | /* .drop_inode = nilfs_drop_inode, */ | 680 | /* .drop_inode = nilfs_drop_inode, */ |
682 | .evict_inode = nilfs_evict_inode, | 681 | .evict_inode = nilfs_evict_inode, |
683 | .put_super = nilfs_put_super, | 682 | .put_super = nilfs_put_super, |
@@ -685,8 +684,6 @@ static const struct super_operations nilfs_sops = { | |||
685 | .sync_fs = nilfs_sync_fs, | 684 | .sync_fs = nilfs_sync_fs, |
686 | .freeze_fs = nilfs_freeze, | 685 | .freeze_fs = nilfs_freeze, |
687 | .unfreeze_fs = nilfs_unfreeze, | 686 | .unfreeze_fs = nilfs_unfreeze, |
688 | /* .write_super_lockfs */ | ||
689 | /* .unlockfs */ | ||
690 | .statfs = nilfs_statfs, | 687 | .statfs = nilfs_statfs, |
691 | .remount_fs = nilfs_remount, | 688 | .remount_fs = nilfs_remount, |
692 | /* .umount_begin */ | 689 | /* .umount_begin */ |
@@ -948,6 +945,8 @@ static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, | |||
948 | struct nilfs_root *root; | 945 | struct nilfs_root *root; |
949 | int ret; | 946 | int ret; |
950 | 947 | ||
948 | mutex_lock(&nilfs->ns_snapshot_mount_mutex); | ||
949 | |||
951 | down_read(&nilfs->ns_segctor_sem); | 950 | down_read(&nilfs->ns_segctor_sem); |
952 | ret = nilfs_cpfile_is_snapshot(nilfs->ns_cpfile, cno); | 951 | ret = nilfs_cpfile_is_snapshot(nilfs->ns_cpfile, cno); |
953 | up_read(&nilfs->ns_segctor_sem); | 952 | up_read(&nilfs->ns_segctor_sem); |
@@ -972,6 +971,7 @@ static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, | |||
972 | ret = nilfs_get_root_dentry(s, root, root_dentry); | 971 | ret = nilfs_get_root_dentry(s, root, root_dentry); |
973 | nilfs_put_root(root); | 972 | nilfs_put_root(root); |
974 | out: | 973 | out: |
974 | mutex_unlock(&nilfs->ns_snapshot_mount_mutex); | ||
975 | return ret; | 975 | return ret; |
976 | } | 976 | } |
977 | 977 | ||