lkml.org 
[lkml]   [2015]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/13] staging/lustre: Drop SEEK_* definition checks
    Date
    From: Oleg Drokin <green@linuxhacker.ru>

    SEEK_DATA and SEEK_HOLE are always defined in the kernel,
    drop the definition checks

    Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
    ---
    .../lustre/lustre/include/linux/lustre_compat25.h | 38 ----------------------
    1 file changed, 38 deletions(-)

    diff --git a/drivers/staging/lustre/lustre/include/linux/lustre_compat25.h b/drivers/staging/lustre/lustre/include/linux/lustre_compat25.h
    index d0e8f3c..7d90999 100644
    --- a/drivers/staging/lustre/lustre/include/linux/lustre_compat25.h
    +++ b/drivers/staging/lustre/lustre/include/linux/lustre_compat25.h
    @@ -69,37 +69,6 @@
    # define inode_dio_read(i) atomic_inc(&(i)->i_dio_count)
    /* inode_dio_done(i) use as-is for read unlock */

    -static inline int
    -ll_quota_on(struct super_block *sb, int off, int ver, char *name, int remount)
    -{
    - int rc;
    -
    - if (sb->s_qcop->quota_on) {
    - struct path path;
    -
    - rc = kern_path(name, LOOKUP_FOLLOW, &path);
    - if (!rc)
    - return rc;
    - rc = sb->s_qcop->quota_on(sb, off, ver
    - , &path
    - );
    - path_put(&path);
    - return rc;
    - } else
    - return -ENOSYS;
    -}
    -
    -static inline int ll_quota_off(struct super_block *sb, int off, int remount)
    -{
    - if (sb->s_qcop->quota_off) {
    - return sb->s_qcop->quota_off(sb, off
    - );
    - } else
    - return -ENOSYS;
    -}
    -
    -
    -
    #define ll_d_hlist_node hlist_node
    #define ll_d_hlist_empty(list) hlist_empty(list)
    #define ll_d_hlist_entry(ptr, type, name) hlist_entry(ptr.first, type, name)
    @@ -121,13 +90,6 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount)
    # define NO_QUOTA (-EDQUOT)
    #endif

    -#ifndef SEEK_DATA
    -#define SEEK_DATA 3 /* seek to the next data */
    -#endif
    -#ifndef SEEK_HOLE
    -#define SEEK_HOLE 4 /* seek to the next hole */
    -#endif
    -
    #ifndef FMODE_UNSIGNED_OFFSET
    #define FMODE_UNSIGNED_OFFSET ((__force fmode_t)0x2000)
    #endif
    --
    2.1.0


    \
     
     \ /
      Last update: 2015-07-31 00:41    [W:5.904 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site