Dividing a loff_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I have a scenario where I need to use non-power-of-2 storage page sizes within 
a file system. 

If I just try something like

  my_page_offset = loff_t_offset / my_page_size;

I get link errors because of a missing _divsi3. If nobody else is using 
_divsi3 then it is probably poor form to consider using it.

Questions:
1) Is there a safe/better way to divide loff_t by a value.
2) Is there a better way to do this sort of thing? Any examples where this 
kind of thing happen?

BTW: Yes, I know there are going to be performance issues etc due to alignment 
issues between the Linux page cache and "my pages". I have a plan to deal 
with that.


TIA
-- Charles

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux