09 Jan, 2012

1 commit

  • * 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (165 commits)
    reiserfs: Properly display mount options in /proc/mounts
    vfs: prevent remount read-only if pending removes
    vfs: count unlinked inodes
    vfs: protect remounting superblock read-only
    vfs: keep list of mounts for each superblock
    vfs: switch ->show_options() to struct dentry *
    vfs: switch ->show_path() to struct dentry *
    vfs: switch ->show_devname() to struct dentry *
    vfs: switch ->show_stats to struct dentry *
    switch security_path_chmod() to struct path *
    vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
    vfs: trim includes a bit
    switch mnt_namespace ->root to struct mount
    vfs: take /proc/*/mounts and friends to fs/proc_namespace.c
    vfs: opencode mntget() mnt_set_mountpoint()
    vfs: spread struct mount - remaining argument of next_mnt()
    vfs: move fsnotify junk to struct mount
    vfs: move mnt_devname
    vfs: move mnt_list to struct mount
    vfs: switch pnode.h macros to struct mount *
    ...

    Linus Torvalds
     

04 Jan, 2012

1 commit


19 Nov, 2011

2 commits


20 May, 2010

1 commit

  • Add debugfs_create_x64. This is needed by ACPI APEI EINJ parameters support.

    Signed-off-by: Huang Ying
    Signed-off-by: Andi Kleen
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Len Brown

    Huang Ying
     

24 Sep, 2009

1 commit


23 Mar, 2009

1 commit

  • Impact: add new debugfs API

    With ftrace, some tracers are registered in early initcalls
    and attempt to create files on the debugfs filesystem.
    Depending on when they are activated, they can try to create their
    file at any time. Some checks can be done on the tracing area
    but providing a helper to know if debugfs is registered make it
    really more easy.

    Signed-off-by: Frederic Weisbecker
    Acked-by: Greg Kroah-Hartman
    Cc: Steven Rostedt
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Frederic Weisbecker
     

27 Jan, 2009

1 commit


21 Jan, 2009

1 commit

  • Toralf Förster reported a build failure in
    the WiMAX stack when CONFIG_DEBUG_FS=n

    http://linuxwimax.org/pipermail/wimax/2009-January/000449.html

    This is due to debugfs_create_size_t() missing an stub that returns
    -ENODEV when the DEBUGFS subsystem is not configured in (like the rest
    of the debugfs API).

    This patch adds said stub.

    Reported-by: Toralf Förster
    Signed-off-by: Inaky Perez-Gonzalez
    Signed-off-by: Greg Kroah-Hartman

    Inaky Perez-Gonzalez
     

08 Jan, 2009

1 commit

  • In the same spirit as debugfs_create_*(), introduce helpers for
    exporting size_t values over debugfs.

    The only trick done is that the format verifier is kept at %llu
    instead of %zu; otherwise type warnings would pop up:

    format ‘%zu’ expects type ‘size_t’, but argument 2 has type ‘long long unsigned int’

    There is no real way to fix this one--however, we can consider %llu
    and %zu to be compatible if we consider that we are using the same for
    validating in debugfs_create_{x,u}{8,16,32}().

    Signed-off-by: Inaky Perez-Gonzalez
    Signed-off-by: Greg Kroah-Hartman

    Inaky Perez-Gonzalez
     

22 Jul, 2008

1 commit

  • debugfs_remove_recursive() will remove a dentry and all its children.
    Drivers can use this to zap their whole debugfs tree so that they don't
    need to keep track of every single debugfs dentry they created.

    It may fail to remove the whole tree in certain cases:

    sh-3.2# rmmod atmel-mci < /sys/kernel/debug/mmc0/ios/clock
    mmc0: card b368 removed
    atmel_mci atmel_mci.0: Lost dma0chan1, falling back to PIO
    sh-3.2# ls /sys/kernel/debug/mmc0/
    ios

    But I'm not sure if that case can be handled in any sane manner.

    Signed-off-by: Haavard Skinnemoen
    Cc: Pierre Ossman
    Signed-off-by: Greg Kroah-Hartman

    Haavard Skinnemoen
     

19 Jul, 2008

1 commit


05 Mar, 2008

1 commit

  • extern does not belong in C files, move declaration to linux/debugfs.h
    fs/debugfs/file.c:42:30: warning: symbol 'debugfs_file_operations' was not declared. Should it be static?
    fs/debugfs/file.c:54:31: warning: symbol 'debugfs_link_operations' was not declared. Should it be static?

    Signed-off-by: Harvey Harrison
    Signed-off-by: Greg Kroah-Hartman

    Harvey Harrison
     

13 Oct, 2007

1 commit


12 Jul, 2007

1 commit


28 Apr, 2007

1 commit

  • I went to use this the other day, only to find it didn't exist.

    It's a straight copy of the debugfs u32 code, then s/u32/u64/. A quick
    test shows it seems to be working.

    Signed-off-by: Michael Ellerman
    Signed-off-by: Greg Kroah-Hartman

    Michael Ellerman
     

17 Feb, 2007

1 commit

  • debugfs: implement symbolic links

    Implement a new function debugfs_create_symlink() which can be used
    to create symbolic links in debugfs. This function can be useful
    for people moving functionality from /proc to debugfs (e.g. the
    gcov-kernel patch).

    Signed-off-by: Peter Oberparleiter
    Signed-off-by: Greg Kroah-Hartman

    Peter Oberparleiter
     

28 Apr, 2006

1 commit

  • Fix the following warning which happens when OCFS2_FS is enabled but
    DEBUG_FS isn't:

    fs/ocfs2/dlmglue.c: In function `ocfs2_dlm_init_debug':
    fs/ocfs2/dlmglue.c:2036: warning: passing arg 5 of `debugfs_create_file' discards qualifiers from pointer target type

    Signed-off-by: Jean Delvare
    Cc: Arjan van de Ven
    Cc: Joel Becker
    Acked-by: Mark Fasheh
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     

29 Mar, 2006

1 commit

  • Mark the f_ops members of inodes as const, as well as fix the
    ripple-through this causes by places that copy this f_ops and then "do
    stuff" with it.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     

21 Mar, 2006

1 commit


19 Apr, 2005

2 commits

  • - Fix prototypes for debugfs functions (in configurations where
    debugfs is disabled).

    Signed-off-by: Michal Ostrowski
    Signed-off-by: Greg Kroah-Hartman

    Michal Ostrowski
     
  • The current include file is a little fragile in that
    it is not self-contained and hence may cause compile warnings or
    errors depending on the files included before it, the kernel config
    and the architecture. This patch makes things a little more robust by:

    - including to get definitions of u32, mode_t, and so on.
    - forward declaring struct file_operations.
    - including when CONFIG_DEBUG_FS is not set

    The last change is particularly useful, as a kernel developer is
    likely to build with debugfs always enabled and never see the build
    breakage cased if debugfs is disabled.

    Signed-off-by: Roland Dreier
    Signed-off-by: Greg Kroah-Hartman

    Roland Dreier
     

17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds