Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'for-linus-6.15-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux

Pull orangefs update from Mike Marshall:

- remove two orangefs bufmap routines that no longer have callers

* tag 'for-linus-6.15-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
orangefs: Bufmap deadcoding

-28
-25
fs/orangefs/orangefs-bufmap.c
··· 197 197 return size; 198 198 } 199 199 200 - int orangefs_bufmap_shift_query(void) 201 - { 202 - struct orangefs_bufmap *bufmap; 203 - int shift = 0; 204 - spin_lock(&orangefs_bufmap_lock); 205 - bufmap = __orangefs_bufmap; 206 - if (bufmap) 207 - shift = bufmap->desc_shift; 208 - spin_unlock(&orangefs_bufmap_lock); 209 - return shift; 210 - } 211 - 212 200 static DECLARE_WAIT_QUEUE_HEAD(bufmap_waitq); 213 201 static DECLARE_WAIT_QUEUE_HEAD(readdir_waitq); 214 202 ··· 519 531 size -= n; 520 532 } 521 533 return 0; 522 - } 523 - 524 - void orangefs_bufmap_page_fill(void *page_to, 525 - int buffer_index, 526 - int slot_index) 527 - { 528 - struct orangefs_bufmap_desc *from; 529 - void *page_from; 530 - 531 - from = &__orangefs_bufmap->desc_array[buffer_index]; 532 - page_from = kmap_atomic(from->page_array[slot_index]); 533 - memcpy(page_to, page_from, PAGE_SIZE); 534 - kunmap_atomic(page_from); 535 534 }
-3
fs/orangefs/orangefs-bufmap.h
··· 10 10 11 11 int orangefs_bufmap_size_query(void); 12 12 13 - int orangefs_bufmap_shift_query(void); 14 - 15 13 int orangefs_bufmap_initialize(struct ORANGEFS_dev_map_desc *user_desc); 16 14 17 15 void orangefs_bufmap_finalize(void); ··· 32 34 int buffer_index, 33 35 size_t size); 34 36 35 - void orangefs_bufmap_page_fill(void *kaddr, int buffer_index, int slot_index); 36 37 37 38 #endif /* __ORANGEFS_BUFMAP_H */