gfs2_lookupi(9)
π NAME π
okay so this page is gfs2_lookupi(9) from the Kernel API Manual, and it's literally here to look up a filename in a directory and return its inode β¨. bestie, that's the whole vibe π«Ά.
β¨ SYNOPSIS β¨
struct inode * gfs2_lookupi (struct inode *dir , const struct qstr *name
, int is_root );
π ARGUMENTS π
dirβ the inode of the directory containing the inode to look-up πΈnameβ the name of the inode to look for πis_rootβ if it's1, ignore the caller's permissions π
π¦ DESCRIPTION π¦
okay so this can be called via the VFS filldir function when NFS is doing a readdirplus and the inode which it's intending to stat isn't already in cache π¦. In this case we must not take the directory glock again, since the readdir call will have already taken that lock. no cap, that's the whole point π
.
β οΈ do not take that directoryglockagain β thereaddircall already took it, and that's literally the rule π.
π₯ RETURN π₯
the return is errno β that's it, that's the whole return bestie π.
π SEE ALSO π
Kernel file ./fs/gfs2/inode.c β and the whole squad is right here:
gfs2_set_iop(9)gfs2_inode_lookup(9)gfs2_lookup_by_inum(9)gfs2_lookup_meta(9)create_ok(9)gfs2_init_xattr(9)init_dinode(9)gfs2_trans_da_blks(9)gfs2_create_inode(9)gfs2_create(9)__gfs2_lookup(9)gfs2_link(9)gfs2_unlink_inode(9)gfs2_unlink(9)gfs2_symlink(9)gfs2_mkdir(9)gfs2_mknod(9)gfs2_atomic_open(9)update_moved_ino(9)gfs2_rename(9)gfs2_exchange(9)gfs2_get_link(9)gfs2_permission(9)gfs2_setattr(9)gfs2_getattr(9)
byeee bestie π«Ά β source/version: ./fs/gfs2, date: October 2026, page: gfs2_lookupi(9) π
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms