08 Aug, 2014

1 commit

  • Support RENAME_NOREPLACE and RENAME_EXCHANGE flags on hostfs if the
    underlying filesystem supports it.

    Since renameat2(2) is not yet in any libc, use syscall(2) to invoke the
    renameat2 syscall.

    Signed-off-by: Miklos Szeredi
    Cc: Richard Weinberger
    Signed-off-by: Christoph Hellwig
    Signed-off-by: Al Viro

    Miklos Szeredi
     

07 May, 2014

2 commits


04 Apr, 2014

1 commit

  • Reclaim will be leaving shadow entries in the page cache radix tree upon
    evicting the real page. As those pages are found from the LRU, an
    iput() can lead to the inode being freed concurrently. At this point,
    reclaim must no longer install shadow pages because the inode freeing
    code needs to ensure the page tree is really empty.

    Add an address_space flag, AS_EXITING, that the inode freeing code sets
    under the tree lock before doing the final truncate. Reclaim will check
    for this flag before installing shadow pages.

    Signed-off-by: Johannes Weiner
    Reviewed-by: Rik van Riel
    Reviewed-by: Minchan Kim
    Cc: Andrea Arcangeli
    Cc: Bob Liu
    Cc: Christoph Hellwig
    Cc: Dave Chinner
    Cc: Greg Thelen
    Cc: Hugh Dickins
    Cc: Jan Kara
    Cc: KOSAKI Motohiro
    Cc: Luigi Semenzato
    Cc: Mel Gorman
    Cc: Metin Doslu
    Cc: Michel Lespinasse
    Cc: Ozgun Erdogan
    Cc: Peter Zijlstra
    Cc: Roman Gushchin
    Cc: Ryan Mallon
    Cc: Tejun Heo
    Cc: Vlastimil Babka
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Johannes Weiner
     

26 Jan, 2014

1 commit

  • The hostfs_*() callback functions are all only used within
    hostfs_kern.c, so make them static.

    Signed-off-by: James Hogan
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: user-mode-linux-devel@lists.sourceforge.net
    Signed-off-by: Richard Weinberger

    James Hogan
     

16 Nov, 2013

1 commit


07 Sep, 2013

1 commit


29 Jun, 2013

1 commit


05 May, 2013

3 commits

  • The inode info structure is zeroed at allocation with kzalloc, and then
    all but one of the fields (including the largest, vfs_inode) are
    initialised explicitly. Switch to using kmalloc and initialise the
    remaining field too.

    Reported-by: Al Viro
    Signed-off-by: James Hogan
    Signed-off-by: Al Viro

    James Hogan
     
  • Move HOSTFS_SUPER_MAGIC to to be with it's magical
    friends from other file systems.

    Reported-by: Al Viro
    Signed-off-by: James Hogan
    Signed-off-by: Al Viro

    James Hogan
     
  • A "will unlock" comment was added to hostfs in the following commit,
    along with a spinlock:

    Commit e9193059b1b3733695d5b80e667778311695aa73 ("hostfs: fix races in
    dentry_name() and inode_name()").

    But the spinlock was subsequently removed in the following commit:

    Commit ec2447c278ee973d35f38e53ca16ba7f965ae33d ("hostfs: simplify
    locking").

    Since the comment is no longer applicable, remove it.

    Reported-by: Al Viro
    Signed-off-by: James Hogan
    Cc: Nick Piggin
    Signed-off-by: Al Viro

    James Hogan
     

14 Mar, 2013

1 commit

  • Pull namespace bugfixes from Eric Biederman:
    "This tree includes a partial revert for "fs: Limit sys_mount to only
    request filesystem modules." When I added the new style module aliases
    to the filesystems I deleted the old ones. A bad move. It turns out
    that distributions like Arch linux use module aliases when
    constructing ramdisks. Which meant ultimately that an ext3 filesystem
    mounted with ext4 would not result in the ext4 module being put into
    the ramdisk.

    The other change in this tree adds a handful of filesystem module
    alias I simply failed to add the first time. Which inconvinienced a
    few folks using cifs.

    I don't want to inconvinience folks any longer than I have to so here
    are these trivial fixes."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
    fs: Readd the fs module aliases.
    fs: Limit sys_mount to only request filesystem modules. (Part 3)

    Linus Torvalds
     

11 Mar, 2013

2 commits


23 Feb, 2013

2 commits


10 Oct, 2012

3 commits


21 Sep, 2012

1 commit


14 Jul, 2012

2 commits

  • boolean "does it have to be exclusive?" flag is passed instead;
    Local filesystem should just ignore it - the object is guaranteed
    not to be there yet.

    Signed-off-by: Al Viro

    Al Viro
     
  • Just the flags; only NFS cares even about that, but there are
    legitimate uses for such argument. And getting rid of that
    completely would require splitting ->lookup() into a couple
    of methods (at least), so let's leave that alone for now...

    Signed-off-by: Al Viro

    Al Viro
     

06 May, 2012

1 commit

  • After we moved inode_sync_wait() from end_writeback() it doesn't make sense
    to call the function end_writeback() anymore. Rename it to clear_inode()
    which well says what the function really does - set I_CLEAR flag.

    Signed-off-by: Jan Kara
    Signed-off-by: Fengguang Wu

    Jan Kara
     

28 Mar, 2012

1 commit

  • Pull UML changes from Richard Weinberger:
    "Mostly bug fixes and cleanups"

    * 'for-linus-3.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml: (35 commits)
    um: Update defconfig
    um: Switch to large mcmodel on x86_64
    MTD: Relax dependencies
    um: Wire CONFIG_GENERIC_IO up
    um: Serve io_remap_pfn_range()
    Introduce CONFIG_GENERIC_IO
    um: allow SUBARCH=x86
    um: most of the SUBARCH uses can be killed
    um: deadlock in line_write_interrupt()
    um: don't bother trying to rebuild CHECKFLAGS for USER_OBJS
    um: use the right ifdef around exports in user_syms.c
    um: a bunch of headers can be killed by using generic-y
    um: ptrace-generic.h doesn't need user.h
    um: kill HOST_TASK_PID
    um: remove pointless include of asm/fixmap.h from asm/pgtable.h
    um: asm-offsets.h might as well come from underlying arch...
    um: merge processor_{32,64}.h a bit...
    um: switch close_chan() to struct line
    um: race fix: initialize delayed_work *before* registering IRQ
    um: line->have_irq is never checked...
    ...

    Linus Torvalds
     

25 Mar, 2012

1 commit


21 Mar, 2012

1 commit


07 Jan, 2012

1 commit


04 Jan, 2012

5 commits

  • It's shared between kernel-compiled hostfs_kern and userland-compiled
    hostfs_user (it's uml stuff). Use explicit type instead of playing
    silly buggers with mode_t. It's not a userland API per se; it interacts
    between code compiled with types same as for host kernel and, directly
    linked to it, code talking to libc. Both sides come from the same
    kernel source...

    Signed-off-by: Al Viro

    Al Viro
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • vfs_create() ignores everything outside of 16bit subset of its
    mode argument; switching it to umode_t is obviously equivalent
    and it's the only caller of the method

    Signed-off-by: Al Viro

    Al Viro
     
  • vfs_mkdir() gets int, but immediately drops everything that might not
    fit into umode_t and that's the only caller of ->mkdir()...

    Signed-off-by: Al Viro

    Al Viro
     
  • Seeing that just about every destructor got that INIT_LIST_HEAD() copied into
    it, there is no point whatsoever keeping this INIT_LIST_HEAD in inode_init_once();
    the cost of taking it into inode_init_always() will be negligible for pipes
    and sockets and negative for everything else. Not to mention the removal of
    boilerplate code from ->destroy_inode() instances...

    Signed-off-by: Al Viro

    Al Viro
     

03 Nov, 2011

1 commit

  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/vfs-queue:
    vfs: add d_prune dentry operation
    vfs: protect i_nlink
    filesystems: add set_nlink()
    filesystems: add missing nlink wrappers
    logfs: remove unnecessary nlink setting
    ocfs2: remove unnecessary nlink setting
    jfs: remove unnecessary nlink setting
    hypfs: remove unnecessary nlink setting
    vfs: ignore error on forced remount
    readlinkat: ensure we return ENOENT for the empty pathname for normal lookups
    vfs: fix dentry leak in simple_fill_super()

    Linus Torvalds
     

02 Nov, 2011

2 commits


21 Jul, 2011

1 commit

  • Btrfs needs to be able to control how filemap_write_and_wait_range() is called
    in fsync to make it less of a painful operation, so push down taking i_mutex and
    the calling of filemap_write_and_wait() down into the ->fsync() handlers. Some
    file systems can drop taking the i_mutex altogether it seems, like ext3 and
    ocfs2. For correctness sake I just pushed everything down in all cases to make
    sure that we keep the current behavior the same for everybody, and then each
    individual fs maintainer can make up their mind about what to do from there.
    Thanks,

    Acked-by: Jan Kara
    Signed-off-by: Josef Bacik
    Signed-off-by: Al Viro

    Josef Bacik
     

20 Jul, 2011

3 commits


28 May, 2011

1 commit