lkml.org 
[lkml]   [2023]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 1/6] shmem: drop BLOCKS_PER_PAGE macro
    Date
    The commit [1] replaced all BLOCKS_PER_PAGE in favor of the
    generic PAGE_SECTORS but definition was not removed. Drop it
    as unused macro.

    [1] e09764cff44b5 ("shmem: quota support").

    Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
    Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
    ---
    mm/shmem.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/mm/shmem.c b/mm/shmem.c
    index be050efe18cb..de0d0fa0349e 100644
    --- a/mm/shmem.c
    +++ b/mm/shmem.c
    @@ -84,7 +84,6 @@ static struct vfsmount *shm_mnt;

    #include "internal.h"

    -#define BLOCKS_PER_PAGE (PAGE_SIZE/512)
    #define VM_ACCT(size) (PAGE_ALIGN(size) >> PAGE_SHIFT)

    /* Pretend that each entry is of this size in directory's i_size */
    --
    2.39.2
    \
     
     \ /
      Last update: 2023-09-19 15:56    [W:2.304 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site